/*
** get_env_paths.c for  in /home/gomes_m//my-project-a-moi/server
** 
** Made by mickael gomes
** Login   <gomes_m@epitech.net>
** 
** Started on  Fri Jul 26 14:01:09 2013 mickael gomes
** Last update Fri Jul 26 14:28:27 2013 mickael gomes
*/

#include		<stdlib.h>
#include		"struct.h"
#include		"prototypes.h"

char			**get_env_paths(char **env)
{
  int			i = 0;
    
  while (env[i])
    {
      if (!my_strncmp(env[i], PATH, my_strlen(PATH)))
	return (my_str_to_wordtab_plus(env[i]));
      i++;
    }
  my_putstr(2, "There's no path in the environement.\n", 0);
  return (NULL);
}
